<template>
	<page-body>
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex aboutUs_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between aboutUs_fd0_0'>
					<view class='flex flex-wrap align-center aboutUs_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  aboutUs_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='aboutUs_fd0_0_c1_c0'>关于我们</text>
					</view>
					<view class='flex align-center justify-end aboutUs_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---版本flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center">
				<image class='aboutUs_fd1_0' mode="aspectFit" v-if="type == 1" :src='STATIC_URL+"111.png"'></image>
				<image class='aboutUs_fd1_0' mode="aspectFit" v-if="type == 2" :src='STATIC_URL+"112.png"'></image>
				<view class='flex flex-wrap align-center aboutUs_fd1_1'>
					<text class='aboutUs_fd1_1_c0'>校味购</text>
				</view>
				<!-- <view class='flex flex-wrap align-center aboutUs_fd1_1'>
					<text class='aboutUs_fd1_1_c0'>当前版本</text>
					<text class='aboutUs_fd1_1_c0'>1.0</text>
				</view> -->
				<text class='aboutUs_fd1_2'>{{systemsInfo}}</text>
				<view class="flex zhengz_1"  @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/login/agreements/agreements?aid=27`">
					<view class="zhengz_2">证照信息</view>
					<text class='fu-iconfont2  system_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
			</view>
			<view class="flex flex-direction align-center justify-between benben-position-layout flex aboutUs_flex_2">
			  <text class='aboutUs_fd2_0'>{{kefu.web_site_copyright}} </text>
			</view>
			<view :style="{height: '88rpx'}"></view>

			<!---版本flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"isShowLoading": false,
				"systemsInfo": "",
				type:'',
				kefu:'',
			};
		},
		computed: {
			appVersion() {
				// 获取版本号
				return this.$store.state.appVersion
			}
		},
		watch: {},
		onLoad(options) {
			this.getMessageFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			if(uni.getStorageSync('tabberType')){
				this.type = uni.getStorageSync('tabberType')
			}else{
				this.type = 1
			}
			
			// this.$store.dispatch('getAppVersion') // 更新版本号
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取底部文字
			getBaseFunc() {
				this.isShowLoading = true;
				this.$api.post(global.apiUrls.post64534cbb2c352, {
					code: 'web_site_copyright',
				}).then(res => {
					this.isShowLoading = false;
					if (res.data.code == 1) {
						this.systemsInfo = res.data.data;
					}
				}).catch(err => {
					this.isShowLoading = false;
				});




			},
			//获取底部文字
			async getMessageFunc() {
				let datadetail = await this.$api.get(global.apiUrls.post6673ead3a1831);
				if (datadetail.data.code != 1) {
				    this.$message.info(datadetail.data.msg);
				    return
				}
				let infodetail = datadetail.data;
				this.kefu = infodetail.data
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.aboutUs_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.aboutUs_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.aboutUs_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: var(--benbenFontColor0);
		line-height: 50rpx;
	}

	.aboutUs_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.aboutUs_fd0_0_c0 {
		width: 100rpx;
	}

	.aboutUs_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.aboutUs_fd1_2 {
		color: var(--benbenFontColor1);
		font-size: 28rpx;
		font-weight: 400;
		line-height: 45rpx;
		position: fixed;
		bottom: calc(150rpx + var(--window-bottom));
	}

	.aboutUs_fd1_1_c0 {
		font-weight: 400;
		color: var(--benbenFontColor0);
		font-size: 28rpx;
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.aboutUs_fd1_1 {
		margin: 32rpx 0rpx 0rpx 0rpx;
	}

	.aboutUs_fd1_0 {
		width: 180rpx;
		height: 180rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		margin: 90rpx 0rpx 0rpx 0rpx;
	}
	.zhengz_1{
		width: 50%;
		margin: 100rpx 0 0 0;
	}
	.zhengz_2{
		font-size: 30rpx;
		color: #333;
	}
	.system_fd1_0_c0_c1 {
		font-size: 26rpx;
		color: rgba(191, 191, 191, 1);
		margin: 10rpx 0 0 auto;
	}
	.aboutUs_flex_2 {
	  width: 600rpx;
	  height: 88rpx;
	  overflow: hidden;
	  z-index: 10;
	  // bottom: calc(56rpx + var(--window-bottom));
	  position: fixed;
	  left: 50%;
	  bottom: 100rpx;
	  transform: translateX(-50%);
	  text-align: center;
	}
	.aboutUs_fd2_0 {
	  color: #999999;
	  font-size: 24rpx;
	  font-weight: 400;
	  line-height: 33rpx;
	  white-space: pre-wrap;
	  text-align: center;
	}
</style>
